<?php
defined('IN_SITE') or exit('Access Denied');
get_header();
?>
<body>
<table cellpadding="3" cellspacing="1" class="table_list"><form method="post" name="myform">
  <caption>管理广告</caption>
<tr>
	<th width="40">选中</th>
	<th width="30">编号</th>
	<th width="160">广告名称</th>
	<th width="40">尺寸</th>
	<!--<th width="83">起始日期</th>
	<th width="126">结束日期</th>-->
	<th width="388">管理操作</th>
</tr>
<?php
if(is_array($adssigns)){
	foreach($adssigns as $value){
?>
<tr>
<td><input type="checkbox" name="adsid[]"  id="checkbox" value="<?=$value['adsid']?>"></td>
<td><?=$value['adsid']?></td>
<td>&nbsp;<?=$value['adsname']?></td>
<td>&nbsp;<?=$value['width']?>x<?=$value['height']?></td>
<!--<td><?php echo date("Y.m.d",$value['fromdate'])?></td>
<td><?php echo date("Y.m.d",$value['todate'])?></td>-->
<td >
<a href="?module=<?=$module?>&action=disabled&adsid=<?=$value['adsid']?>&val=<?=($value['disabled']==1 ? 0 : 1)?>"><?=($value['disabled']==1 ? '<font color="red">启用</font>' : '禁用')?></a> | 
<A HREF="?module=<?=$file?>&action=edit&adsid=<?=$value['adsid']?>">修改</A> | 
<A HREF="?module=<?=$file?>&action=stat&adsid=<?=$value['adsid']?>">统计</A> | 
调用代码:<input type="text" size="35" onFocus="this.select()" value='<script language="javascript" src="index.php?module=ads&action=view&adsid=<?=$value['adsid']?>"></script>'/>
</td>
</tr>
<?php
	}
}
?>
</table>
<div>
	<input type="button" value="全选" onClick="checkall()">
	<input TYPE="hidden" name="referer" value="<?=$referer?>">
	<input type="submit" name="submit" value="批量审核通过" onClick="myform.action='?module=<?=$module?>&action=disabled&val=1';return confirm('您确定要审核吗？');">
	<input type="submit" name="submit" value="批量取消审核" onClick="myform.action='?module=<?=$module?>&action=disabled&val=0';return confirm('您确定要取消审核吗？');">
	<input type="submit" name="submit" value="批量删除" onClick="myform.action='?module=<?=$module?>&action=delete';return confirm('您确定要删除吗？');">
</div>
</form>
<div class="pages"><?=$pages?></div>
</body>
</html>